/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nanterre.annuaire.model;

import java.nio.charset.Charset;
import java.util.Date;
import java.util.List;

/**
 *
 * @author illamhat
 */
public class Mention extends ElementAnnuaire{

    private int fidDomaine;
    private Date dateCreation;
    private Date dateModification;
    
    public Mention() {
        super();
    }

    public int getFidDomaine() {
        return fidDomaine;
    }

    public Date getDateCreation() {
        return dateCreation;
    }

    public Date getDateModification() {
        return dateModification;
    }
    
    public void setFidDomaine(int fidDomaine) {
        this.fidDomaine = fidDomaine;
    }
    
    public void setDateCreation(Date dateCreation) {
        this.dateCreation = dateCreation;
    }

    public void setDateModification(Date dateModification) {
        this.dateModification = dateModification;
    }
    
    public String afficherMention(int parentID){
        String resultatTmp = "<li id=\"MENTION"+this.getId()+"\" class=\"fermer\"><a href=\"#\" class=\"arbre\"  onclick=\"deroulerElement('"+this.getId()+"', '"+this.getType().getLabel()+"', '"+parentID+"'); return false;\"><img class=\"derouler\" src=\"images/derouler.jpg\" alt=\"dérouler les informations\" /> Mention : "+this.getLibelleComplet()+"</a></li>";              
        String resultat = new String (resultatTmp.getBytes(), Charset.forName("UTF-8"));
        return resultat;
    }
    
    public String afficherMentionNotComplete(int parentID){
        String resultatTmp = "<li id=\"MENTION"+this.getId()+"\" class=\"ouvert\"><a href=\"#\" class=\"arbre\"  onclick=\"deroulerElement('"+this.getId()+"', '"+this.getType().getLabel()+"', '"+parentID+"'); return false;\"><img class=\"derouler\" src=\"images/enrouler.jpg\" alt=\"dérouler les informations\" /> Mention : "+this.getLibelleComplet()+"</a>";              
        String resultat = new String (resultatTmp.getBytes(), Charset.forName("UTF-8"));
        return resultat;
    }
    
}
